﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="NJL.WebUsers.Visitor.Default" %>

<%@ Import Namespace="Royalsoft.Common" %>
<%@ Register Src="~/Controls/WUCHeaderVisitor.ascx" TagName="WUCHeaderVisitor" TagPrefix="uc1" %>
<%@ Register Src="~/Controls/WUCVisitorSpaceRight.ascx" TagName="WUCVisitorSpaceRight"
    TagPrefix="uc4" %>
<%@ Register Src="../Controls/WUCFooterShop.ascx" TagName="WUCFooterShop" TagPrefix="uc2" %>
<%@ Register src="../Controls/WUCVisitorSpaceLeftUserInfo.ascx" tagname="WUCVisitorSpaceLeftUserInfo" tagprefix="uc5" %>
<%@ Register src="../Controls/WUCVisitorSpaceLeftLastVisitor.ascx" tagname="WUCVisitorSpaceLeftLastVisitor" tagprefix="uc6" %>
<%@ Register src="../Controls/WUCVisitorSpaceLeftAttention.ascx" tagname="WUCVisitorSpaceLeftAttention" tagprefix="uc7" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>乡间小屋-农家乐网</title>
    <link rel="stylesheet" type="text/css" href="/Styles/personal/personl_001/base_001.css" />
    <script type="text/javascript" language="javascript" src="/Scripts/jquery-1.4.1.min.js"></script>
     <script src="/Scripts/popup_layer.js" type="text/javascript"></script>
    <script src="/Scripts/js/jquery.skygqbox.1.3.js" type="text/javascript" charset="UTF-8"></script>
</head>
<body>
    <form runat="server" id="form1">
          <%
        if (UserId == "" || UserName == "")
        {         
    %>
    <script language="javascript" type="text/javascript">
        $(document).ready(function () {
            //示例9，综合效果
            var t9 = new PopupLayer({ trigger: "#txtComment", popupBlk: "#blk9", closeBtn: "#close9", useOverlay: true, useFx: true,
                offsets: {
                    x: 0,
                    y: -41
                }
            });
            t9.doEffects = function (way) {
                if (way == "open") {
                    this.popupLayer.css({ opacity: 0.3 }).show(400, function () {
                        this.popupLayer.animate({
                            left: ($(document).width() - this.popupLayer.width()) / 2,
                            top: (document.documentElement.clientHeight - this.popupLayer.height()) / 2 + $(document).scrollTop(),
                            opacity: 0.8
                        }, 1000, function () { this.popupLayer.css("opacity", 1) } .binding(this));
                    } .binding(this));
                    document.getElementById('Login').src = '<%=WEBSITE_USRE_DOMAIN %>/SecondLogin.aspx?websitecode=<%=WEBSITE_CODE %>&domain=<%=WEBSITE_DOMAIN %>&url=<%=Request.RawUrl %>';
                }
                else {
                    this.popupLayer.animate({
                        left: this.trigger.offset().left,
                        top: this.trigger.offset().top,
                        opacity: 0.1
                    }, { duration: 500, complete: function () { this.popupLayer.css("opacity", 1); this.popupLayer.hide() } .binding(this) });
                }
            }
        });
    </script>
             <div id="blk9" class="blk">
            <div class="popup_title">
                <span class="f_right"><a href="javascript:void(0)" id="close9">关闭</a></span>
                <ul>
                    <li class="now">
                        <a target="main">登陆</a>
                    </li>
                </ul>
            </div>
            <div>
                <iframe id="Login" name="main" width="500"
                    height="420" style="overflow:hidden; border:none;"></iframe>
            </div>
        </div>
    <%
        }
    %>
    <uc1:WUCHeaderVisitor ID="WUCHeaderVisitor1" runat="server" />
    <!--主要内容-->
    <div class="clearfix w1003" id="content">
        <!--左侧-->
        <div class="w_200 float_l">
            <uc5:WUCVisitorSpaceLeftUserInfo ID="WUCVisitorSpaceLeftUserInfo1" runat="server" />
            <!--最近来访-->
            <div class="blank"></div>
            <uc6:WUCVisitorSpaceLeftLastVisitor ID="WUCVisitorSpaceLeftLastVisitor1" runat="server" />
            <!--我的关注-->
            <div class="blank cleanFlex"></div>
            <uc7:WUCVisitorSpaceLeftAttention ID="WUCVisitorSpaceLeftAttention1" runat="server" />
        </div>
        <div class="w_790 float_r">
            <!--右侧-->
            <uc4:WUCVisitorSpaceRight ID="WUCVisitorSpaceRight1" runat="server" />
            <!--中间-->
            <div class="float_l w_580">
                <%--     <div class="boxgreen">
                        <div class="titlePerson">
                            <span><a href="#">上传图片</a></span>
                            <h2>
                                <a href="#">相册</a></h2>
                        </div>
                        <div class="imgphoto">
                            <a href="#">
                                <img src="/Images/personl/personal_001/photo.jpg" alt="" /></a>
                        </div>
                    </div>--%>
                <div class="boxgreen">
                    <div class="titlePerson">
                        <%
                            if (UserId != "" && UserId == Request.QueryString["uid"])
                            {
                        %>
                        <span class="float_r"><a href="/AdminVisitor/AddInformation.aspx">写主题</a></span>
                        <%
                            }
                        %>
                        <h2>
                            <a href="/wanjia/<%=Request.QueryString["uid"] %>-yjlb.html" target="_blank">主题</a></h2>
                    </div>
                    <div class="cont">
                        <asp:Repeater ID="rptTravel" runat="server">
                            <ItemTemplate>
                                <dl class="imglist dashline" style="height: 85px;">
                                    <dt><a target="_blank" href="/wanjia/<%=Request.QueryString["uid"] %>-youji-<%#Eval("ID") %>.html"
                                        title="<%#Eval("NEWS_TITLE") %>">
                                        <img class="picBor" width="93px" height="69px" alt="<%#Eval("NEWS_TITLE") %>" src="<%#Eval("IMAGE_CODE").ToString()!=""?GetImageUrl(Eval("IMAGE_CODE").ToString(),"2"):"/Images/nopic.jpg" %>" />
                                    </a></dt>
                                    <dd>
                                        <h3 class="float_l">
                                            <a target="_blank" href="/wanjia/<%=Request.QueryString["uid"] %>-youji-<%#Eval("ID") %>.html">
                                                <%#PageValidate.SqlText(Eval("NEWS_TITLE").ToString(),20)%>
                                            </a>
                                        </h3>
                                        <span>
                                            <%#Eval("CREATE_DATE_TIME", "{0:yyyy-MM-dd HH:mm:ss}")%></span>
                                    </dd>
                                    <dd>
                                        <%#PageValidate.SqlText(Eval("NEWS_SUBJECT_TITLE").ToString(), 150)%></dd>
                                </dl>
                            </ItemTemplate>
                        </asp:Repeater>
                        <div class="cleanFlex more">
                            <p>
                                <a href="/wanjia/<%=Request.QueryString["uid"] %>-yjlb.html" target="_blank">查看更多</a></p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <input id="hiduserid" type="hidden" />
    <div class="blank cleanFlex">
    </div>
    <uc2:WUCFooterShop ID="WUCFooterShop1" runat="server" />
    </form>
</body>
</html>
